Application/Update Menus - Updates the File and Edit menus
Menu/Enable Item - A new method
New Classes:
Movie Window - Displays a movie
Movie Options - Movie options dialog
Description
--------------
ProMovie is a complete application which will open, play, edit and save QuickTime movies. ProMovie uses QuickTime's standard movie controller to do most of the work.
How To Use In Your Program
-------------------------------------
You will probably NOT want to use ProMovie as a starting point for your own application. Instead, borrow code for the functions you need.
The File and Edit menu methods are all Universal Methods. Look at these to see how easy it is to open, save and perform simple editing operations on movies. The "Movie Options" class contains methods which change a movie's play options, such as looping.
"Movie Window" has only a couple of methods, one for closing the window and disposing of the window's movie and another for adjusting the window's size. "Movie Window" has four new attributes; for the window's movie, movie controller, file id, and resource id. Look in the universal method "Open" to see how these are set.
"Application/Notify" has a new first case. For every event, this case searches the window list for movie controllers and calls "MCIsPlayerEvent" for each. "MCIsPlayerEvent" is the magic routine which completely handles clicks in the movie controller and plays movies. The call to "MoviesTask" speeds up the front movie when it's playing.
"Application/Update Menus" keeps the edit menu up to date; yet another thing that's easy with QuickTime.
When you open a movie, you will get a window which contains the movie and a controller. The controller is the QuickTime standard movie controller, it is pretty much self-explanatory, but here is an explanation anyway.
• Turn sound on or off:
- Click on the speaker on the far left.
• Play movie:
- Click on the little black triangle on the left.
• Stop playing:
- The little black triangle on the left changes to a stop button when the movie is playing.
• Play movie backwards:
- Shift-click on the little black triangle on the left.
• Play movie by hand:
- Drag the slider rectangle around.
• Play movie one frame at a time:
- Click one of the two frame buttons on the right.
• Go to a particular place in the movie:
- Click on the slider bar.
• Go directly to the beginning or the end of the movie:
- Option-Click on one of the frame buttons on the right.
• Select a part of the movie:
- Shift-Click in the slider bar or Shift-Drag the slider.
• Select a single frame:
- Shift-Click in one of the frame buttons on the right.
To edit a movie, select one or more frames as outlined above, and use the copy and paste functions. ( There is a little bug in Paste, it adds to the selection instead of replacing it. Use Clear before pasting to get the normal paste behavior. Sorry. )
To make the movie loop, select part or all of the movie, and choose the "Options" item in the "Edit" menu. You will get a little dialog with a couple of buttons and check boxes. Check "Looping" and "Play Selection" then press OK. ("Palindrome" make the movie play forward then backward) ( Note that each movie has its own separate options settings) Click on the play button. The movie will play just the selection in a continuous loop. Press the play button again to stop the movie. (The play button changes to a pause button when the movie plays)